﻿using UnityEngine;

[DisallowMultipleComponent]
public class NToggleBtn : ToggleBtn
{
    public UILabel tabNameTxt;

    public override void SetTabState(bool enabled)
    {
        var collider = GetComponent<Collider>();
        if (collider) { collider.enabled = enabled; }
    }

    public override void SetTabName(string name)
    {
        if (tabNameTxt != null) { tabNameTxt.text = name; }
    }
}